import request from '@/utils/aliyunRequest';

const vipCardApi = {};

vipCardApi.exportUpdateCards = () => {
	return request({
		url: '/aliyun-api/vip-card/export-cards',
		method: 'get',
    responseType: 'blob',
	})
}
vipCardApi.exportVipSample = () => {
	return request({
		url: '/aliyun-api/vip-card/export-samples',
		method: 'get',
    responseType: 'blob',
	})
}
vipCardApi.sampleList = (id) => {
	return request({
		url: '/aliyun-api/vip-card/samples/' + id,
		method: 'get',
	})
}
vipCardApi.list = () => {
	return request({
		url: '/aliyun-api/vip-card/list',
		method: 'get',
	})
}
vipCardApi.page = (params) => {
	return request({
		url: '/aliyun-api/vip-card/page',
		method: 'get',
		params: params,
	})
}
vipCardApi.add = (params) => {
	return request({
		url: '/aliyun-api/vip-card',
		method: 'post',
		data: params,
	})
}
vipCardApi.addBatch = (params) => {
	return request({
		url: '/aliyun-api/vip-card/add-batch',
		method: 'post',
		data: params,
	})
}
vipCardApi.update = (params) => {
	return request({
		url: '/aliyun-api/vip-card',
		method: 'put',
		data: params,
	})
}
vipCardApi.updateDesc = (params) => {
	return request({
		url: '/aliyun-api/vip-card/update-desc',
		method: 'put',
		data: params,
	})
}
vipCardApi.get = (id) => {
	return request({
		url: '/aliyun-api/vip-card/' + id,
		method: 'get',
	})
}
vipCardApi.delete = (id) => {
	return request({
		url: '/aliyun-api/vip-card/' + id,
		method: 'delete',
	})
}


export default vipCardApi